//
//  WYRFriendCell.m
//  10-21-快速搭建框架
//
//  Created by zzn on 2016/11/8.
//  Copyright © 2016年 lkx0. All rights reserved.
//

#import "WYRFriendCell.h"
#import "WYRFriend.h"
@implementation WYRFriendCell

//重写friendsModel的set方法
-(void)setFriendModel:(WYRFriend *)friendModel{
    _friendModel=friendModel;
    //将好友模型的数据给cell
    self.imageView.image=[UIImage imageNamed:friendModel.icon];
    self.textLabel.text=friendModel.name;
    
    //设置会员的颜色
    if (friendModel.isVip) {
        self.textLabel.textColor=[UIColor redColor];
    }else{
    
        self.textLabel.textColor=[UIColor blackColor];
    }
    self.detailTextLabel.text=friendModel.intro;

}









- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
